package com.keyinong.caizhengting.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.ArrayList;

public class OrderViewPagerAdapter extends FragmentPagerAdapter {
    ArrayList<Fragment> fragmetList;

    public OrderViewPagerAdapter(FragmentManager i, ArrayList<Fragment> fragmetList) {
        super(i);
        this.fragmetList = fragmetList;
    }

    @Override
    public Fragment getItem(int arg0) {
        return fragmetList.get(arg0);
    }

    @Override
    public int getCount() {
        return fragmetList.size();
    }

}
